﻿using Vitus.Featured.Models;

namespace Vitus.Featured.Settings {

    /// <summary>
    /// Settings when attaching part to a content item
    /// </summary>
    public class FeaturedSettings {

        public FeaturedSettings()
        {
            Mode = FeaturedMode.ChooseFeatured;
            TitlePartUsageMode = FieldDependencyMode.Disallow;
            TitleMaxLength = 255;
            BodyPartUsageMode = FieldDependencyMode.Disallow;
            BodyMaxLength = 255;
        }

        public FeaturedMode Mode { get; set; }

        public FieldDependencyMode TitlePartUsageMode { get; set; }

        public int TitleMaxLength { get; set; }

        public FieldDependencyMode BodyPartUsageMode { get; set; }

        public int BodyMaxLength { get; set; }
    }
}
